<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="">
	<meta http-equiv="description" content="This is my page">
	
  </head>
  
  <body>
    <center>
    	<s:form name="frm" id="frm" method="post" action="" namespace="">
    		<table width="100%">
    			<tr>
    				<td align="left" valign="top">
    					<img src="${CONTEXT_PATH}/images/button/btn.gif" width="150px" />
    				</td>
    			</tr>
    			<tr>
    				<td align="left" valign="top">
    					hello world
    				</td>
    			</tr>
    		</table>
    		
    		<table>
    			<tr>
    				<td>用户名</td>
    				<td>性别</td>
    				<td>部门</td>
    				<td>操作</td>
    			</tr>
    			<s:iterator value="list">
    				<tr>
    					<td>
    						<s:property value="username"/>
    					</td>
    					<td>
    						<s:property value="sex"/>
    					</td>
    					<td>
    						<s:property value="deptName"/>
    					</td>
    					<td>
    						<a href="javascript:updateUser('<s:property value="id"/>')">
    							修改
    						</a>
    					</td>
    				</tr>
    			</s:iterator>
    		</table>
    	</s:form>
    </center>
    
    <script type="text/javascript">
    function updateUser(id)
    {
		var url = '<%=path%>/test/toUpdateUser.action?user.id=' + id;
		window.location.href = url;
    }
    
    </script>
  </body>
</html>
